﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DAL;
using DAL.Service;
using DAL.Service.Impl;
using System.Collections;
using BIZ;

namespace joyAdmin.Controllers
{
    public class reportController : Controller
    {
        //
        // GET: /report/
        ReportOper ro = new ReportOper();
        public ActionResult basicReport()
        {
            cmsOper.CheckUserRights("basicReport");
            return View();
        }

        public JsonResult getBasicReport()
        {
            string in_s = Request.Form["in_s"];
            string in_e = Request.Form["in_e"];
            return Json(ro.getBasicReport(in_s,in_e));
        }
 

        public ActionResult UserCardReport()
        {
            cmsOper.CheckUserRights("UserCardReport");
            return View();
        }

        public ActionResult BookReport()
        {
            cmsOper.CheckUserRights("BookReport");
            return View();
        }

        public ActionResult UserReport()
        {
            cmsOper.CheckUserRights("UserReport");
            return View();
        }
        public ActionResult BookRankingReport()
        {
            cmsOper.CheckUserRights("BookRankingReport");
            return View();
        }

        public ActionResult UserRankingReport()
        {
            cmsOper.CheckUserRights("UserRankingReport");
            return View();
        }
    }
}
